<template>
	<view>
		<Home />
	</view>
</template>

<script setup>
	import Home from "@/pages/template/home/index.vue"
	import Menu from "@/pages/template/menu/index.vue"
	import {
		ref
	} from 'vue';
	import {
		onShow
	} from '@dcloudio/uni-app';

	//<cc-tabbar v-model="currentTab" @tabChange="handleTabChange" />
	const currentTab = ref(0)

	function handleTabChange(e) {
		currentTab.value = e.index;
	}

	onShow(() => {
		uni.pageScrollTo({
			scrollTop: 0,
			duration: 300,
		});
	})
</script>

<style lang="scss" scoped>
	.fade-enter-active,
	.fade-leave-active {
		transition: opacity 1s ease;
	}

	.fade-enter,
	.fade-leave-to {
		opacity: 0;
	}
</style>